package org.example.beans;


import org.example.annotation.Autowired;
import org.example.annotation.MyComponent;

@MyComponent
public class PencilBox {


    @Autowired
    private Pencil pencil;

    public PencilBox(Pencil pencil) {
        this.pencil = pencil;
    }

    public Pencil getPencil() {
        return pencil;
    }

    public  PencilBox(){

    }

}


